package com.yh.service.impl;

import com.yh.service.UserDao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class UserDaoImpl implements UserDao {
    @Value("帅气")
    private String userName;
    @Value("23")
    private Integer age;

    private List<UserDaoImpl> users;

    private Map<String,String> map;

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setUsers(List<UserDaoImpl> users) {
        this.users = users;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    @Override
    public void save() {
        System.out.println("save()方法已经被执行！！！");
    }

    public void init(){
        System.out.println("初始化方法---------");
    }
    public void destroy(){
        System.out.println("毁灭方法-----------");
    }

}
